package com.todo.sight.common.base;

/**
 * @author azhebuxing
 * @date 2024/12/6 20:23
 * @description
 */
public class SightKeyBuild {

    public static String cityDetailKey(Long cityId) {
        return String.format(SightRedisKey.SIGHT_CITY_DETAIL_KEY, cityId);
    }

    public static String cityParentIdListKey(Long parentId) {
        return String.format(SightRedisKey.SIGHT_CITY_PARENT_LIST_KEY, parentId);
    }

    public static String sightPoiDetailKey(Long sightPoiId) {
        return String.format(SightRedisKey.SIGHT_POI_DETAIL_KEY, sightPoiId);
    }

    public static String sightDetailKey(Long sightId) {
        return String.format(SightRedisKey.SIGHT_DETAIL_KEY, sightId);
    }

    public static String sightDetailPoiRelationKey(Long poiId) {
        return String.format(SightRedisKey.SIGHT_DETAIL_POI_RELATION_KEY, poiId);
    }
}
